<?php
	include_once("king_head.php");
?>

<?php
	include_once("ClsSebent/config.php");

	if("$action"=="Save" && $_SESSION['SITE_ID'] != ""){

		$sql="UPDATE site_home SET paypal_id ='$paypal_id',payment_ins='$payment_ins' WHERE id=$_SESSION['SITE_ID']";
		//echo $sql;
		mysql_query($sql);

	}
	$sql="SELECT paypal_id,payment_ins FROM site_home WHERE id=$_SESSION['SITE_ID']";

	$result = mysql_query($sql);
	if($row=mysql_fetch_array($result)){
		$paypal =$row["paypal_id"];
		$payment_ins =$row["payment_ins"];
	}
?>

<CENTER>
<H2> Payment Account Setup - Paypal</H2>
<form enctype="multipart/form-data"  method="post" name="frm"><input type=hidden name=site_id value="<?php echo $_SESSION['SITE_ID']; ?>">
<link id="skin_css" href="hardcore/webeditor/webeditor.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="hardcore/webeditor/webeditor.js"></script>
<script type="text/javascript">
<!--
// This example web page and its content images are located in the same folder as the web content editor program files so image URLs etc. should not be "shortened"
webeditor.shortenLocalURLsSearch = false;
webeditor.shortenLocalURLsPath = false;
webeditor.shortenLocalURLsBase = false;
// -->

<!--
HardCoreWebEditorToolbar();
// -->
</script>
<TABLE>
<tr><td>Paypal User ID </td><td><input name=paypal_id value="<?php echo $paypal; ?>" size=40 maxlength=255></td></tr>
<tr><td>Payment Instructions<BR><FONT SIZE=1>(You can enter<BR>content in<BR>HTML format)</FONT> </td><td>
<script type="text/javascript">
<!--
payment_ins = '<?php echo str_replace("SCRIPT", "SCR'+'IPT", str_replace("script", "scr'+'ipt", str_replace("\t", "\\t", str_replace("\n", "\\n", str_replace("\r", "\\r", str_replace("'", "\'", str_replace("</", "<\/", str_replace("\\", "\\\\", $payment_ins)))))))); ?>';
content_editor = new HardCoreWebEditor('hardcore/webeditor/', '', 'payment_ins', payment_ins, '', 'hardcore/webeditor/hardcore1.css', true, 'manager', '', '', '', '', '', '', '', 'html', '');
// -->
</script>
<script type="text/javascript">
<!--
HardCoreWebEditorDOMInspector();
// -->
</script>
</td></tr>
<tr><td colspan=2 align=center><input type=submit name=action value=Save></TD>
</TR>
</TABLE></form>
</CENTER>

<?php
	include_once("king_foot.php");
?>